<?php

/**
 * Editionoptions form base class.
 *
 * @method Editionoptions getObject() Returns the current form's model object
 *
 * @package    briefingPropel
 * @subpackage form
 * @author     Your name here
 */
abstract class BaseEditionoptionsForm extends BaseFormPropel
{
  public function setup()
  {
    $this->setWidgets(array(
      'idEditionOptions'     => new sfWidgetFormInputHidden(),
      'is_technical_terms'   => new sfWidgetFormInputText(),
      'is_foraign_word'      => new sfWidgetFormInputText(),
      'is_superlative'       => new sfWidgetFormInputText(),
      'is_old_language'      => new sfWidgetFormInputText(),
      'is_start_of_sentence' => new sfWidgetFormInputText(),
      'ownChoiceId'          => new sfWidgetFormPropelChoice(array('model' => 'Ownchoice', 'add_empty' => true)),
      'moreText'             => new sfWidgetFormInputText(),
    ));

    $this->setValidators(array(
      'idEditionOptions'     => new sfValidatorChoice(array('choices' => array($this->getObject()->getIdeditionoptions()), 'empty_value' => $this->getObject()->getIdeditionoptions(), 'required' => false)),
      'is_technical_terms'   => new sfValidatorInteger(array('min' => -128, 'max' => 127)),
      'is_foraign_word'      => new sfValidatorInteger(array('min' => -128, 'max' => 127)),
      'is_superlative'       => new sfValidatorInteger(array('min' => -128, 'max' => 127)),
      'is_old_language'      => new sfValidatorInteger(array('min' => -128, 'max' => 127)),
      'is_start_of_sentence' => new sfValidatorInteger(array('min' => -128, 'max' => 127)),
      'ownChoiceId'          => new sfValidatorPropelChoice(array('model' => 'Ownchoice', 'column' => 'idOwnChoice', 'required' => false)),
      'moreText'             => new sfValidatorString(array('max_length' => 500, 'required' => false)),
    ));

    $this->widgetSchema->setNameFormat('editionoptions[%s]');

    $this->errorSchema = new sfValidatorErrorSchema($this->validatorSchema);

    parent::setup();
  }

  public function getModelName()
  {
    return 'Editionoptions';
  }


}
